{%extends '../base/base.tpl'%}

{%block 'title'%}用户打款管理{%/block%}

{%block 'header_css'%}
<link href="../../static/js/common/plugins/chosen/chosen.css?__inline" rel="stylesheet">
<link href="../../static/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="../../static/css/plugins/cropper/cropper.min.css" rel="stylesheet">  <!--图片上传加裁剪-->


<!-- 上传组件 -->
<link href="../../static/js/common/plugins/fileinput/fileinput.min.css" rel="stylesheet"/>
<!--富文本 -->
<link href="../../static/js/common/plugins/kindeditor/themes/qq/qq.css" rel="stylesheet"/>
<link href="../../static/css/animate.min.css" rel="stylesheet">
<link href="../../static/css/style.min.css?__inline" rel="stylesheet">
<link href="../../static/css/common.css?__inline" rel="stylesheet">


<style type="text/css">
table{font-size:13px;text-align:center;}
thead{font-weight:bold;text-align:center;}
th{text-align: center;}
.list_edit_table{}
.is_must{line-height: 34px;}
table a{display: inline-block;}
.img-preview-sm{height:78px;}
.note-editor .note-editable{background: #fff}
.note-editable{min-height: 200px;}
.tangram-suggestion-main{z-index: 10000}
.BMapLabel{margin-top: -20px;max-width: inherit;}
.btn-danger{background-color: #ec4758;border-color: #ec4758;color: #FFF;}
.btn-success{background-color: #1a7bb9;border-color: #1a7bb9;color: #FFF;}





</style>
{%/block%}

{%block 'header_js'%} 

{%/block%}

{%block 'foot'%}

{%/block%}

{%block 'body'%}
{%assign var=table_operation value="true" %}
{%assign var=table_btn value=array(
    [
        'url'=>'#',
        'text'=>'编辑',
        'type'=>'edit_btn',
        'data_target'=>'#table_detail',
        'data_toggle'=>'modal'
    ]
) %}
<div id="wrapper">
    {%include file="../../widget/left_menu.tpl"%}
    <div id="page-wrapper" class="gray-bg dashbard-1">
    {%include file="../../widget/header.tpl"%}
    <div class="row J_mainContent" id="content-main">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h3>用户打款管理</h3>
            </div>
            <div class="ibox-content">
                <div class="row">
                    <form method="get" class="form-horizontal">
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="col-sm-3 control-label">起始时间:</label>
                                <div class="col-md-9">
                                    <input id="withdraw_begin_time" class="form-control layer-date" name="begin_time" placeholder="请选择日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" />
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <label class="col-sm-3 control-label">结束时间:</label>
                                <div class="col-md-9">
                                    <input id="withdraw_end_time" class="form-control layer-date" name="end_time" placeholder="请选择日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" />
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <label class="col-sm-3 control-label">客户手机:</label>
                                <div class="col-md-9">
                                    <input type="text" placeholder="客户手机号" name="mobile" id="withdraw_mobile" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="col-sm-3 control-label">打款历史:</label>
                                <div class="col-md-9" id="share_share_status">
                                    <div class="radio i-checks col-md-4">
                                        <label class="">
                                            <div class="iradio_square-green"><input type="radio" value="1" id='withdraw_is_history_yes' name="is_history"></div> <i></i> 是</label>
                                    </div>
                                    <div class="radio i-checks col-md-4">
                                        <label class="">
                                            <div class="iradio_square-green"><input type="radio" value="0" id='withdraw_is_history_no'  name="is_history"></div> <i></i> 否</label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-2 pull-right">
                                <label class="col-sm-3 control-label"></label>
                                <div class="col-md-9" id="regionWrap">
                                    <button class="btn btn-primary pull-right"  type="submit"><i class="fa fa-search"></i>&nbsp;搜索</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="hr-line-dashed"></div>
                <!-- <a type="button" href="#" class="btn btn-primary new_file_coupon" data-toggle="modal" data-target="#table_detail">新建乐享卡</a> -->
                {%include file="../../widget/table_mod.tpl"%}
                {%include file="../../widget/pagination.tpl"%}

            </div>
        </div>
    </div>
    {%include file="../../widget/footer.tpl"%}
    </div>
</div>
    {%include file="../../widget/editable_mod.tpl"%}
{%/block%}
  
{%block 'foot_js'%}
<script src="../../static/js/common/plugins/chosen/chosen.jquery.js?__inline"></script>
<script src="../../static/js/common/content.min.js"></script>
<script src="../../static/js/common/plugins/validate/jquery.validate.min.js"></script>
<script src="../../static/js/common/plugins/validate/messages_zh.min.js"></script>
<script src="../../static/js/common/jquery.form.js"></script>
<script src="../../static/js/common/plugins/layer/laydate/laydate.js"></script> 
<script src="../../static/js/common/plugins/sweetalert/sweetalert.min.js"></script>
<script src="../../static/js/common/plugins/jeditable/jquery.jeditable.js"></script> 
<script src="../../static/js/common/plugins/dataTables/jquery.dataTables.js"></script> 
<script src="../../static/js/common/plugins/dataTables/dataTables.bootstrap.js"></script> 
<script src="../../static/js/common/plugins/iCheck/icheck.min.js"></script> 
<script src="../../static/js/common/plugins/cropper/cropper.min.js"></script> 
<script src="../../static/js/common/plugins/ajaxfileupload/ajaxfileupload.js"></script> 

<!-- 上传组件 -->
<script src="../../static/js/common/plugins/fileinput/fileinput.min.js"></script>
<script src="../../static/js/common/plugins/fileinput/fileinput_locale_zh.js"></script>
<!-- 富文本 -->
<script type="text/javascript" charset="utf-8" src="../../static/js/common/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../static/js/common/plugins/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="../../static/js/common/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- <script src="../../static/js/table/tableoperation.js"></script> -->
<script src="../../static/js/table/tableModel.js"></script>
<script type="text/javascript">

  
$(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
var WinUrl = window.location.search;
function getUrlParam(name){   //获取URL参数值
    //构造一个含有目标参数的正则表达式对象  
    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");  
    //匹配目标参数  
    var r = decodeURI(window.location.search.substr(1)).match(reg);  
    //返回参数值  
    if (r!=null) return unescape(r[2]);  
    return null;  
}
$(function(){
    if(WinUrl.indexOf("is_history") > 0){
        // alert("aaaa");
        // $("#share_share_status input[value='share_status']").val(getUrlParam('share_status'));
        if(getUrlParam('is_history')==0){
            $('#withdraw_is_history_no').attr('checked',true);
            $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})
        }else{
            $('#withdraw_is_history_yes').attr('checked',true);
            $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})
        }
    }
    if(WinUrl.indexOf("end_time") > 0){
        $("#withdraw_end_time").val(getUrlParam('end_time'))
    }
    if(WinUrl.indexOf("begin_time") > 0){
        $("#withdraw_begin_time").val(getUrlParam('begin_time'))
    }
    if(WinUrl.indexOf("mobile") > 0){
        $("#withdraw_mobile").val(getUrlParam('mobile'))
    }
});
  
  

 

</script> 
{%/block%}

